import React from "react";

class fo extends React.Component {
  render() {
    let names = ["Alice", "Emily", "Kate"];
    let arr1 = [
      <h1 key="1">hello world</h1>,
      <h2 key="2">react is awesome</h2>,
    ];
    return (
      <div>
        {names.map((item, index) => {
          return <div key={index}>hello {item}</div>;
        })}
        <div>{arr1}</div>
      </div>
    );
  }
}

export default fo;
